package testplan.entities;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Tag 
{
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long key;
    
	@Persistent
	private String name;
	
	// foreign key to Agency
	@Persistent
	private Long agency;
	
	public Tag(String name) {
		super();
		this.name = name;
	}

	public Tag(String name, Long agency) {
		super();
		this.name = name;
		this.agency = agency;
	}

	public Long getAgency() {
		return agency;
	}

	public void setAgency(Long agency) {
		this.agency = agency;
	}

	public Long getKey()
    {
		return key;
	}

	public String getName()
    {
		return name;
	}

	public void setName(String name)
    {
		this.name = name;
	}

}
